//
//  BaseModel.swift
//  fho
//
//  Created by 郭颢源 on 2021/3/29.
//

import UIKit
import HandyJSON

class BaseModel<T>: HandyJSON {
    var code:Int = 0
    var message:String!
    var data:T?
    required init() {}
}

class Model: BaseModel<Any> {
    var result:ResultModel?
    required init() {}
}

class ResultModel: HandyJSON {
    var author:String!
    var content:String!
    var category:String!
    var origin:String!
    required init() {}
}

/**
 
{
"code":200,
"message":"成功!",
"result":{
   "author":"王安石",
   "origin":"南乡子·自古帝王州",
   "category":"古诗文-抒情-伤感",
   "content":"四百年来成一梦，堪愁。"
}
}
 */
